﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using System.Web.UI;

namespace JavaScriptCodeBehind
{
    public class ControlReferenceList: List<ControlReference>
    {

        public int IndexOf(Control control)
        {

            for(int i = 0; i< this.Count;i++)
                if(this[i].control == control)
                    return i;

            return -1;

        }

    }
}
